7.8
HIGH CVSS 3.1
CVE-2026-45250
Stack buffer overflow via setcred(2)
Description

The setcred(2) system call is only available to privileged users. However, before the privilege level of the caller is checked, the user-supplied list of supplementary groups is copied into a fixed-size kernel stack buffer without first validating its length. If the supplied list exceeds the capacity of that buffer, a stack buffer overflow occurs. Because the bounds check on the supplementary groups list occurs after the kernel stack buffer has already been written, an unprivileged local user may trigger the overflow without holding any special privilege. Successful exploitation may allow an attacker to execute arbitrary code in the context of the kernel, allowing an unprivileged local user to gain elevated privileges on the affected system.

INFO

Published Date :

May 21, 2026, 9:16 a.m.

Last Modified :

May 22, 2026, 8:16 a.m.

Remotely Exploit :

No
Affected Products

The following products are affected by CVE-2026-45250 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Freebsd freebsd
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH 134c704f-9b21-4f2e-91b3-4a467353bcc0
Solution
Fix the stack buffer overflow in the setcred(2) system call by validating the length of the supplementary groups list.
  • Validate the length of the supplementary groups list before copying.
  • Ensure bounds checking occurs before data copying.
  • Apply patches to the setcred(2) system call implementation.
  • Restrict privileges for setcred(2) system call.
Public PoC/Exploit Available at Github

CVE-2026-45250 has a 2 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-45250.

URL Resource
https://security.freebsd.org/advisories/FreeBSD-SA-26:18.setcred.asc Vendor Advisory
http://www.openwall.com/lists/oss-security/2026/05/21/18
http://www.openwall.com/lists/oss-security/2026/05/21/3
http://www.openwall.com/lists/oss-security/2026/05/22/5
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-45250 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-45250 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

CVE-2026-45250 - FreeBSD 14.x LPE

C

Updated: 2 weeks, 3 days ago
20 stars 2 fork 2 watcher
Born at : May 21, 2026, 4:40 a.m. This repo has been linked 1 different CVEs too.

📡 PoC auto collect from GitHub. ⚠️ Be careful Malware.

security cve exploit poc vulnerability

Updated: 3 days, 14 hours ago
7810 stars 1261 fork 1261 watcher
Born at : Dec. 8, 2019, 1:03 p.m. This repo has been linked 718 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-45250 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-45250 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    May. 22, 2026

    Action Type Old Value New Value
    Added Reference http://www.openwall.com/lists/oss-security/2026/05/22/5
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    May. 22, 2026

    Action Type Old Value New Value
    Added Reference http://www.openwall.com/lists/oss-security/2026/05/21/18
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    May. 21, 2026

    Action Type Old Value New Value
    Added Reference http://www.openwall.com/lists/oss-security/2026/05/21/3
  • Initial Analysis by [email protected]

    May. 21, 2026

    Action Type Old Value New Value
    Added CPE Configuration OR *cpe:2.3:o:freebsd:freebsd:15.0:p1:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:15.0:p2:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.3:-:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.3:p1:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.3:p2:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.3:p3:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.3:p4:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.3:p5:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.3:p6:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.3:p7:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.3:p8:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:15.0:-:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.4:rc1:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:15.0:p3:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.3:p9:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.4:-:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:15.0:p4:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.3:p10:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.3:p11:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.4:p1:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.4:p2:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:15.0:p5:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:15.0:p6:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.3:p12:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.3:p13:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.4:p3:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.4:p4:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:15.0:p7:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:15.0:p8:*:*:*:*:*:*
    Added Reference Type FreeBSD: https://security.freebsd.org/advisories/FreeBSD-SA-26:18.setcred.asc Types: Vendor Advisory
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    May. 21, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • New CVE Received by [email protected]

    May. 21, 2026

    Action Type Old Value New Value
    Added Description The setcred(2) system call is only available to privileged users. However, before the privilege level of the caller is checked, the user-supplied list of supplementary groups is copied into a fixed-size kernel stack buffer without first validating its length. If the supplied list exceeds the capacity of that buffer, a stack buffer overflow occurs. Because the bounds check on the supplementary groups list occurs after the kernel stack buffer has already been written, an unprivileged local user may trigger the overflow without holding any special privilege. Successful exploitation may allow an attacker to execute arbitrary code in the context of the kernel, allowing an unprivileged local user to gain elevated privileges on the affected system.
    Added CWE CWE-121
    Added Reference https://security.freebsd.org/advisories/FreeBSD-SA-26:18.setcred.asc
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.